package com.demo.behavioral.responsibility;

public abstract class Handler {
	
	protected Handler successor;    
    /**
     * 设置下一个处理请求的对象
     */
    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }
    /**
     * 处理请求
     */
    public abstract void handleRequest(String request);

}
